﻿<UserControl x:Class="Kokomo.Environment.Documents.TreeNodeView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:doc="clr-namespace:Kokomo.Environment.Documents"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
	<FrameworkElement.Resources>
		<DataTemplate DataType="{x:Type doc:TreeNodeViewModel}">
			<Grid>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="16"/>
					<ColumnDefinition Width="2"/>
					<ColumnDefinition Width="Auto"/>
				</Grid.ColumnDefinitions>
				<Image Source="{Binding IconSource}"/>
				<TextBlock Grid.Column="2" Text="{Binding Heading}"/>
			</Grid>
		</DataTemplate>
	</FrameworkElement.Resources>

	<ContentPresenter Content="{Binding}"/>
</UserControl>
